package com.g2.admin.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.g2.admin.model.po.AuthPermitOrgPo;
import com.g2.admin.dao.mapper.IAuthPermitOrgMapper;

@Service
@Slf4j
public class AuthPermitOrgService {
	@Autowired
	private IAuthPermitOrgMapper authpermitorgMapper;
	
	public AuthPermitOrgPo getAuthpermitorg(long id) {
		return authpermitorgMapper.selectById(id);
	}

	public void delAuthpermitorg(long id) {
		authpermitorgMapper.deleteById(id);
	}

	public void addAuthpermitorg(AuthPermitOrgPo authpermitorg) {
		authpermitorgMapper.insert(authpermitorg);
	}
	
	public void updateAuthpermitorg(AuthPermitOrgPo authpermitorg) {
		authpermitorgMapper.updateById(authpermitorg);
	}
}
